<!DOCTYPE html>

<html>
    <!--Road to the Super Bowl Website by Brian Goodacre-->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
	<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
	<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
	
	<!--Google Analytics-->
	<script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-28034388-1']);
	  _gaq.push(['_trackPageview']);

	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();

	</script>
    </head>
    
    
    
    <body>
	<h1>ROAD TO THE SUPER BOWL 2012</h1>
	<p></p>
	<h3>	<u>INSTRUCTIONS</u><br></h3>
		1. Select teams that you predict will win using the radio button.<br>
		2. Click update to update the bracket.<br>
		3. Continue until the bracket is complete without any X's.<br>
		4. Enter your name, your bracket's name, and submit it!<br>
		5. <a href="http://www.mediafire.com/?tgaolp63e9x0fnz">Download the Rules</a>
	
   <p></p><h3><u>NFL Playoff Bracket</u></h3>
	<?php
	session_start();
	if(isset($_POST['submit'])){
	    $error=0;
	    if($_POST['username']==""){
		echo "<FONT COLOR=red>Please enter Your Name and try submitting again.</FONT><br>";
		$error=1;//abort
	    }
	    if($_POST['bracketname']==""){
		echo "<FONT COLOR=red>Please enter a Bracket Name and try submitting again.</FONT><br>";
		$error=1;//abort
	    }
	    if($_SESSION['sel1_']=='X'|| //all set
		$_SESSION['sel2_']=='X'||
		$_SESSION['sel3_']=='X'||
		$_SESSION['sel4_']=='X'||
		$_SESSION['sel5_']=='X'||
		$_SESSION['sel6_']=='X'||
		$_SESSION['sel7_']=='X'||
		$_SESSION['sel8_']=='X'||
		$_SESSION['sel9_']=='X'||
		$_SESSION['sel10_']=='X'||
		$_SESSION['sel11_']=='X'){
		echo "<FONT COLOR=red>Please complete your bracket and try submitting again.</FONT><br>";
		$error=1;//abort
	    }
	    if($error==0){//no errors!
		//connect to database and update
		$db_server = '208.11.220.249';
		$db_user = 'q33q3';
		$db_password = '9vtESPhn';
		$db_dbname = 'submissions';
		$db = mysql_pconnect($db_server, $db_user, $db_password);
		mysql_select_db($db_dbname);
		#Insert into database
		$query='INSERT INTO submissiondata  (	PersonName,BracketName,
							sel1,sel2,sel3,sel4,
							sel5,sel6,sel7,sel8,
							sel9,sel10,sel11) 
				    VALUES (	\''.$_POST['username'].'\',		
						\''.$_POST['bracketname'].'\',
						'.$_SESSION['sel1_'].',
						'.$_SESSION['sel2_'].',
						'.$_SESSION['sel3_'].',
						'.$_SESSION['sel4_'].',
						'.$_SESSION['sel5_'].',
						'.$_SESSION['sel6_'].',
						'.$_SESSION['sel7_'].',
						'.$_SESSION['sel8_'].',
						'.$_SESSION['sel9_'].',
						'.$_SESSION['sel10_'].',
						'.$_SESSION['sel11_'].');';
		#Confirmation of Picks
		echo "<font color='blue'>Success!";
		echo ' Your picks: '.$_SESSION['sel1_'].','.$_SESSION['sel2_'].','.$_SESSION['sel3_'].','.$_SESSION['sel4_'].','.$_SESSION['sel5_'].','.$_SESSION['sel6_'].','.$_SESSION['sel7_'].','.$_SESSION['sel8_'].','.$_SESSION['sel9_'].','.$_SESSION['sel10_'].','.$_SESSION['sel11_'].'';
		echo "</font>";
		
		
		#brian's converted data
		$result = mysql_query($query);
		if (!$result) {
    die('Invalid query: ' . mysql_error());
}
		$sel_1 = $_SESSION['sel1_'];#done
		$sel_2 = $_SESSION['sel3_']+6;#done
		$sel_3 = $_SESSION['sel2_'];#done
		$sel_4 = $_SESSION['sel4_']+6;#done
		if($_SESSION['sel2_']==3){#done
		    $sel_5 = $_SESSION['sel5_'];
		    $sel_7 = $_SESSION['sel6_'];
		}
		else{
		    $sel_5 = $_SESSION['sel6_'];
		    $sel_7 = $_SESSION['sel5_'];
		}
		if($_SESSION['sel4_']==3){#done
		    $sel_6 = $_SESSION['sel7_']+6;
		    $sel_8 = $_SESSION['sel8_']+6;
		}
		else{
		    $sel_6 = $_SESSION['sel8_']+6;
		    $sel_8 = $_SESSION['sel7_']+6;
		}
		$sel_9 = $_SESSION['sel9_'];#done
		$sel_10 = $_SESSION['sel10_']+6;#done
		$sel_11 = $_SESSION['sel11_'];#done
		$query='INSERT INTO rttsbconverteddata  (PersonName,BracketName,
							sel1,sel2,sel3,sel4,
							sel5,sel6,sel7,sel8,
							sel9,sel10,sel11) 
				    VALUES (	\''.$_POST['username'].'\',		
						\''.$_POST['bracketname'].'\',
						'.$sel_1.',
						'.$sel_2.',
						'.$sel_3.',
						'.$sel_4.',
						'.$sel_5.',
						'.$sel_6.',
						'.$sel_7.',
						'.$sel_8.',
						'.$sel_9.',
						'.$sel_10.',
						'.$sel_11.');';
		mysql_query($query);
		
		
		mysql_close($db);
		
		#Clears everything up
		session_unset();
		
		
	    }
	}
	
	#Database Data
	
	#for printing team name
	function writeTeamName($teamnumber,$conf){
	    #Playoff Information (from 2011 TODO-update)
	    $afc1 = "Patriots";
	    $afc2 = "Ravens";
	    $afc3 = "Texans";
	    $afc4 = "Broncos";
	    $afc5 = "Steelers";
	    $afc6 = "Bengals";
	    $nfc1 = "Packers";
	    $nfc2 = "49ers";
	    $nfc3 = "Saints";
	    $nfc4 = "Giants";
	    $nfc5 = "Falcons";
	    $nfc6 = "Lions";
	
	    if($conf=='n')
		$teamnumber=$teamnumber+6;
	    
		switch($teamnumber){
		    case 'X': return "XXXX";
			break;
		    case 1: return $afc1;
			break;
		    case 2: return $afc2;
			break;
		    case 3: return $afc3;
			break;
		    case 4: return $afc4;
			break;
		    case 5: return $afc5;
			break;
		    case 6: //to deal with 0+6
			if($conf=='a'||$conf=='s')
			    return $afc6;
			else
			    return "XXXX";
			break;
		    case 7: return $nfc1;
			break;
		    case 8: return $nfc2;
			break;
		    case 9: return $nfc3;
			break;
		    case 10: return $nfc4;
			break;
		    case 11: return $nfc5;
			break;
		    case 12: return $nfc6;
			break;
		    default: return "XXXX";
			break;
		}
	}
	if(!isset($_SESSION['first'])){
	    $_SESSION['first'] = 0;
	    #letters-AFC
	    $_SESSION['a'] = 4;$_SESSION['b'] = 5;$_SESSION['c'] = 3;$_SESSION['d'] = 6;
	    $_SESSION['e'] = 1;$_SESSION['f'] = 'X';$_SESSION['g'] = 2;$_SESSION['h'] = 'X';
	    $_SESSION['i'] = 'X';$_SESSION['j'] = 'X';
	    $_SESSION['k'] = 'X';
	    #letters-NFC
	    $_SESSION['l'] = 4;$_SESSION['m'] = 5;$_SESSION['n'] = 3;$_SESSION['o'] = 6;
	    $_SESSION['p'] = 1;$_SESSION['q'] = 'X';$_SESSION['r'] = 2;$_SESSION['s'] = 'X';
	    $_SESSION['t'] = 'X';$_SESSION['u'] = 'X';
	    $_SESSION['v'] = 'X';
	    #letters-super
	    $_SESSION[w]=0;
	    #selections
	    $_SESSION['sel1_']='X';
	    $_SESSION['sel2_']='X';
	    $_SESSION['sel3_']='X';
	    $_SESSION['sel4_']='X';
	    $_SESSION['sel5_']='X';
	    $_SESSION['sel6_']='X';
	    $_SESSION['sel7_']='X';
	    $_SESSION['sel8_']='X';
	    $_SESSION['sel9_']='X';
	    $_SESSION['sel10_']='X';
	    $_SESSION['sel11_']='X';#super bowl
	}
	else{
	    $_SESSION['first']=1;
	    
	    #save entries
	    if (isset($_POST['sel1']))
		    $_SESSION['sel1_']=$_POST['sel1'];
	    if (isset($_POST['sel2']))
		    $_SESSION['sel2_']=$_POST['sel2'];
	    if (isset($_POST['sel3']))
		    $_SESSION['sel3_']=$_POST['sel3'];
	    if (isset($_POST['sel4']))
		    $_SESSION['sel4_']=$_POST['sel4'];
	    if (isset($_POST['sel5']))
		    $_SESSION['sel5_']=$_POST['sel5'];
	    if (isset($_POST['sel6']))
		    $_SESSION['sel6_']=$_POST['sel6'];
	    if (isset($_POST['sel7']))
		    $_SESSION['sel7_']=$_POST['sel7'];
	    if (isset($_POST['sel8']))
		    $_SESSION['sel8_']=$_POST['sel8'];
	    if (isset($_POST['sel9']))
		    $_SESSION['sel9_']=$_POST['sel9'];
	    if (isset($_POST['sel10']))
		    $_SESSION['sel10_']=$_POST['sel10'];
	    if (isset($_POST['sel11']))
		    $_SESSION['sel11_']=$_POST['sel11'];
	    
	    #logic for the bracket
	    #afc divisional
	    if($_SESSION['sel1_']<$_SESSION['sel2_']){#for determining the higher seeding matchup
		$_SESSION['f']=$_SESSION['sel2_'];
		$_SESSION['h']=$_SESSION['sel1_'];
	    }
	    else{
		$_SESSION['f']=$_SESSION['sel1_'];
		$_SESSION['h']=$_SESSION['sel2_'];
	    }
	    #afc conference
	    $_SESSION['i']=$_SESSION['sel5_'];
	    $_SESSION['j']=$_SESSION['sel6_'];
	    if($_SESSION['sel5_']!=$_SESSION['e']&&$_SESSION['sel5_']!=$_SESSION['f']){#for fixing times when the previously chosen seed if removed
		$_SESSION['i']='X';
		$_SESSION['sel5_']='X';
	    }
	    if($_SESSION['sel6_']!=$_SESSION['g']&&$_SESSION['sel6_']!=$_SESSION['h']){#for fixing times when the previously chosen seed if removed
		$_SESSION['j']='X';
		$_SESSION['sel6_']='X';
	    }
	    #afc super bowl
	    $_SESSION['k']=$_SESSION['sel9_'];
	    if($_SESSION['sel9_']!=$_SESSION['i']&&$_SESSION['sel9_']!=$_SESSION['j']){#for fixing times when the previously chosen seed if removed
		$_SESSION['k']='X';
		$_SESSION['sel9_']='X';
	    }
	    
	    #nfc
	    #Nfc divisional
	    if($_SESSION['sel3_']<$_SESSION['sel4_']){#for determining the higher seeding matchup
		$_SESSION['q']=$_SESSION['sel4_'];
		$_SESSION['s']=$_SESSION['sel3_'];
	    }
	    else{
		$_SESSION['q']=$_SESSION['sel3_'];
		$_SESSION['s']=$_SESSION['sel4_'];
	    }
	    #Nfc conference
	    $_SESSION['t']=$_SESSION['sel7_'];
	    $_SESSION['u']=$_SESSION['sel8_'];
	    if($_SESSION['sel7_']!=$_SESSION['p']&&$_SESSION['sel7_']!=$_SESSION['q']){#for fixing times when the previously chosen seed if removed
		$_SESSION['t']='X';
		$_SESSION['sel7_']='X';
	    }
	    if($_SESSION['sel8_']!=$_SESSION['r']&&$_SESSION['sel8_']!=$_SESSION['s']){#for fixing times when the previously chosen seed if removed
		$_SESSION['u']='X';
		$_SESSION['sel8_']='X';
	    }
	    #Nfc super bowl
	    $_SESSION['v']=$_SESSION['sel10_'];
	    if($_SESSION['sel10_']!=$_SESSION['t']&&$_SESSION['sel10_']!=$_SESSION['u']){#for fixing times when the previously chosen seed if removed
		$_SESSION['v']='X';
		$_SESSION['sel10_']='X';
	    }
	    
	    #NFL CHAMPION
	    $_SESSION['w']=$_SESSION['sel11_'];
	    if($_SESSION['sel11_']!=$_SESSION['k']&&$_SESSION['sel11_']!=($_SESSION['v']+6)){#for fixing times when the previously chosen seed if removed
		$_SESSION['w']='X';
		$_SESSION['sel11_']='X';
	    }
	    
	}
	
	#see function name
	function makeRadioChecked($selectnumber,$value){
	    $checked = ' checked';
	    #convert to a usable variable
	    switch($selectnumber){
		case 1:
		    $temp = $_SESSION['sel1_'];
		    break;
		case 2:
		    $temp = $_SESSION['sel2_'];
		    break;
		case 3:
		    $temp = $_SESSION['sel3_'];
		    break;
		case 4:
		    $temp = $_SESSION['sel4_'];
		    break;
		case 5:
		    $temp = $_SESSION['sel5_'];
		    break;
		case 6:
		    $temp = $_SESSION['sel6_'];
		    break;
		case 7:
		    $temp = $_SESSION['sel7_'];
		    break;
		case 8:
		    $temp = $_SESSION['sel8_'];
		    break;
		case 9:
		    $temp = $_SESSION['sel9_'];
		    break;
		case 10:
		    $temp = $_SESSION['sel10_'];
		    break;
		case 11:
		    $temp = $_SESSION['sel11_'];
		    break;
	    }
	    if($temp==$value && $value!="X"){
		return $checked; #for html to make it checked
	    }
	}
	
	#Submit Chart
	if (isset($_POST['Submit1'])) {
	    #check if everything is correct
	    #convert to good code
	    #submit to the database
	}
	
	
	#Data Table
	echo '<form action ="index.php" method="post">';
	#Building the Entry Table
	echo '<table border="1">';
	    #Headers for AFC
	    echo "<tr>";
	    echo '<th colspan="3">AFC Wild Card</th>';
	    echo '<th colspan="3">AFC Divisional</th>';
	    echo '<th colspan="3">AFC Conference</th>';
	    echo '<th colspan="3">Super Bowl</th>';
	    echo '<th colspan="1">NFL Champion</th>';
	    
	    echo '</tr>';
	    
	    echo '<tr>';
		#round 1
		echo '<td>'.$_SESSION['a'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['a'],'a').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel1 value='.$_SESSION['a'].' '.makeRadioChecked(1,$_SESSION['a']).'>'.writeTeamName($_SESSION['a'],'a').'
			<input type="radio" name=sel1 value='.$_SESSION['b'].' '.makeRadioChecked(1,$_SESSION['b']).'>'.writeTeamName($_SESSION['b'],'a').'</td></td>';
		
		#round 2
		echo '<td>'.$_SESSION['e'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['e'],'a').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel5 value='.$_SESSION['e'].' '.makeRadioChecked(5,$_SESSION['e']).'>'.writeTeamName($_SESSION['e'],'a').'
			<input type="radio" name=sel5 value='.$_SESSION['f'].' '.makeRadioChecked(5,$_SESSION['f']).'>'.writeTeamName($_SESSION['f'],'a').'</td></td>';
		
		#round 3
		echo '<td rowspan=2>'.$_SESSION['i'].'</td>';
		echo '<td rowspan=2>'.writeTeamName($_SESSION['i'],'a').'</td>';
		echo	'<td rowspan=4><input type="radio" name=sel9 value='.$_SESSION['i'].' '.makeRadioChecked(9,$_SESSION['i']).'>'.writeTeamName($_SESSION['i'],'a').'
			<input type="radio" name=sel9 value='.$_SESSION['j'].' '.makeRadioChecked(9,$_SESSION['j']).'>'.writeTeamName($_SESSION['j'],'a').'</td></td>';
		
		#round 4 - super bowl
		echo '<td rowspan=4>'.$_SESSION['k'].'</td>';
		echo '<td rowspan=4>'.writeTeamName($_SESSION['k'],'a').'</td>';
		echo	'<td rowspan=9><input type="radio" name=sel11 value='.$_SESSION['k'].' '.makeRadioChecked(11,$_SESSION['k']).'>'.writeTeamName($_SESSION['k'],'a').'
			<input type="radio" name=sel11 value='.($_SESSION['v']+6).' '.makeRadioChecked(11,($_SESSION['v']+6)).'>'.writeTeamName($_SESSION['v'],'n').'</td></td>';
		
		#champion round
		echo '<td rowspan=9>'.writeTeamName($_SESSION['w'],'s').'</td>';
		
	    echo '</tr>';
	    echo '<tr>';
		#round 1
		echo '<td>'.$_SESSION['b'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['b'],'a').'</td>';
		
		#round 2
		echo '<td>'.$_SESSION['f'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['f'],'a').'</td>';
		
		
	    echo '</tr>';
	    echo '<tr>';#afc wild card 2a
		#round 1
		echo '<td>'.$_SESSION['c'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['c'],'a').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel2 value='.$_SESSION['c'].' '.makeRadioChecked(2,$_SESSION['c']).'>'.writeTeamName($_SESSION['c'],'a').'
			<input type="radio" name=sel2 value='.$_SESSION['d'].' '.makeRadioChecked(2,$_SESSION['d']).'>'.writeTeamName($_SESSION['d'],'a').'</td></td>';
		
		#round 2
		echo '<td>'.$_SESSION['g'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['g'],'a').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel6 value='.$_SESSION['g'].' '.makeRadioChecked(6,$_SESSION['g']).'>'.writeTeamName($_SESSION['g'],'a').'
			<input type="radio" name=sel6 value='.$_SESSION['h'].' '.makeRadioChecked(6,$_SESSION['h']).'>'.writeTeamName($_SESSION['h'],'a').'</td></td>';
		
		#round 3
		echo '<td rowspan=2>'.$_SESSION['j'].'</td>';
		echo '<td rowspan=2>'.writeTeamName($_SESSION['j'],'a').'</td>';
	    echo '</tr>';
	    echo '<tr>';#afc wild card 2b
		#round 1
		echo '<td>'.$_SESSION['d'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['d'],'a').'</td>';
		
		#round 2
		echo '<td>'.$_SESSION['h'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['h'],'a').'</td>';
		
		
	    echo '</tr>';
	    
	    #NFC
	    echo '<tr>';
	    echo '<th colspan="3">NFC Conference</th>';
	    echo '<th colspan="3">NFC Divisional</th>';
	    echo '<th colspan="3">NFC Wild Card</th>';
	    echo '</tr>';
	    
	    
	    echo '<tr>';
		#round 1
		echo '<td>'.$_SESSION['l'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['l'],'n').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel3 value='.$_SESSION['l'].' '.makeRadioChecked(3,$_SESSION['l']).'>'.writeTeamName($_SESSION['l'],'n').'
			<input type="radio" name=sel3 value='.$_SESSION['m'].' '.makeRadioChecked(3,$_SESSION['m']).'>'.writeTeamName($_SESSION['m'],'n').'</td></td>';
		
		#round 2
		echo '<td>'.$_SESSION['p'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['p'],'n').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel7 value='.$_SESSION['p'].' '.makeRadioChecked(7,$_SESSION['p']).'>'.writeTeamName($_SESSION['p'],'n').'
			<input type="radio" name=sel7 value='.$_SESSION['q'].' '.makeRadioChecked(7,$_SESSION['q']).'>'.writeTeamName($_SESSION['q'],'n').'</td></td>';
		
		#round 3
		echo '<td rowspan=2>'.$_SESSION['t'].'</td>';
		echo '<td rowspan=2>'.writeTeamName($_SESSION['t'],'n').'</td>';
		echo	'<td rowspan=4><input type="radio" name=sel10 value='.$_SESSION['t'].' '.makeRadioChecked(10,$_SESSION['t']).'>'.writeTeamName($_SESSION['t'],'n').'
			<input type="radio" name=sel10 value='.$_SESSION['u'].' '.makeRadioChecked(10,$_SESSION['u']).'>'.writeTeamName($_SESSION['u'],'n').'</td></td>';
		
		#round 4 - super bowl
		echo '<td rowspan=4>'.$_SESSION['v'].'</td>';
		echo '<td rowspan=4>'.writeTeamName($_SESSION['v'],'n').'</td>';
		
	    echo '</tr>';
	    echo '<tr>';
		#round 1
		echo '<td>'.$_SESSION['m'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['m'],'n').'</td>';
		
		#round 2
		echo '<td>'.$_SESSION['q'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['q'],'n').'</td>';
		
		
	    echo '</tr>';
	    echo '<tr>';#nfc wild card 2a
		#round 1
		echo '<td>'.$_SESSION['n'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['n'],'n').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel4 value='.$_SESSION['n'].' '.makeRadioChecked(4,$_SESSION['n']).'>'.writeTeamName($_SESSION['n'],'n').'
			<input type="radio" name=sel4 value='.$_SESSION['o'].' '.makeRadioChecked(4,$_SESSION['o']).'>'.writeTeamName($_SESSION['o'],'n').'</td></td>';
		
		#round 2
		echo '<td>'.$_SESSION['r'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['r'],'n').'</td>';
		echo	'<td rowspan=2><input type="radio" name=sel8 value='.$_SESSION['r'].' '.makeRadioChecked(8,$_SESSION['r']).'>'.writeTeamName($_SESSION['r'],'n').'
			<input type="radio" name=sel8 value='.$_SESSION['s'].' '.makeRadioChecked(8,$_SESSION['s']).'>'.writeTeamName($_SESSION['s'],'n').'</td></td>';
		
		#round 3
		echo '<td rowspan=2>'.$_SESSION['u'].'</td>';
		echo '<td rowspan=2>'.writeTeamName($_SESSION['u'],'n').'</td>';
	    echo '</tr>';
	    echo '<tr>';#nfc wild card 2b
		#round 1
		echo '<td>'.$_SESSION['o'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['o'],'n').'</td>';
		
		#round 2
		echo '<td>'.$_SESSION['s'].'</td>';
		echo '<td>'.writeTeamName($_SESSION['s'],'n').'</td>';
		
		
	    echo '</tr>';
	    
	    
	echo '</table>';
	
	#update
	echo '<input value="Update" name="Update1" type="submit"/></form>';
	
	#finished so close
	session_start();
	?>
	
	<!--submit to the database-->
	<br>
	<h4>SUBMIT YOUR BRACKET</h4>
	<form action="index.php" method="post">
	<p>Your Name: <input type="text" name="username"/></p>
	<p>Bracket Name: <input type="text" name="bracketname"/><p>
	<input value="Submit Bracket" name="submit" type="submit"/>
	</form>
	
	
	
	
	<h5><br>&copy; 2012 Brian Goodacre </h5>
    </body>
</html>
